package org.acghub.mtdb.common;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author zhouhe
 */
public interface TypeDependency {
    void depends(Set<Type> types);

    default Set<Type> depends() {
        Set<Type> types = new LinkedHashSet<>();
        depends(types);
        return types;
    }
}